import { createApp } from 'vue'

import App from './App.vue'
import router from '@/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 引入 svg 图标 组件 并自动注册
import 'virtual:svg-icons-register'
import GlobalComponents from '@/components/index'
import '@/styles/index.scss'
import pinia from './stores'
import './permisstion'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn
})

app.use(GlobalComponents)
app.use(pinia)
app.use(router)

app.mount('#app')
